<?php if($slide): ?>
    <?php slot('projects') ?>
        <div class="project-desc">
                <div class="info02">
                    <?php if($project->getVideo_link()): ?>
                        <!-- Video -->
                        <div id="video" class="clear">
                            <div class="a">
                                <img src="tmp/tmp08.png" alt="" />
                            </div>
                        </div>
                    <?php endif; ?>
                    <div id="text" class="clear">
                        <div class="a">
                            <p><?php echo $project->getDescription() ?></p>
                        </div>
                        <p class="url">
    						<?php if($project->getUrl()): ?>
    							<?php echo __('Veebileht') ?>: <a href="http://<?php echo $project->getUrl() ?>" target="_blank"><?php echo $project->getUrl() ?></a>
    						<?php else: ?>
    							&nbsp;
							<?php endif; ?>
    					</p>
                    </div>
                </div>
                <div class="info01">
                    <div class="a">
                        <span id="toggle01"><a href="#" class="desc"><?php echo __('Kirjeldus') ?></a></span>
                        <?php if($project->getVideo_link()): ?><a href="#" class="video"><?php echo __('Video') ?></a><?php endif; ?>
                    </div>
                </div>
                <div class="title">
                    <h1 style="color: #bdbdbd;"><?php echo $project->getName() ?></h1>
                    <h2 style="color: #fff; margin-top: 20px;"></h2>
                </div>
		</div>
    <?php end_slot(); ?>
<?php endif; ?>
<?php if($slide): ?>
     <?php slot('slide') ?>
       <img class="backgound-image" src="/web/uploads/<?php echo $slide->getFile() ?>" alt="Project Slide" />
     <?php end_slot() ?>
<?php else: ?>
     <?php slot('slide') ?>
       <img class="backgound-image" src="/web/tmp/tmp_bg02.jpg" alt="Project Slide" />
     <?php end_slot() ?>
<?php endif; ?>